package com.lzz.oss.service;

import com.lzz.oss.adapter.StorageAdapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: 23622
 * @time: 2024/5/29 21:14
 */
@Service
public class FileSrervice {

    private final StorageAdapter storageAdapter;

    public FileSrervice(StorageAdapter storageAdapter) {
        this.storageAdapter = storageAdapter;
    }

    /**
     * 列出所有桶
     */
    public List<String> getAllBucket(){
        return storageAdapter.getAllBucket();
    }
}
